home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1843 / 1843.xpi / content / firebug / firebug.xul < prev    next >
Extensible Markup Language  |  2010-01-15  |  10KB  |  163 lines

  1. <?xml version="1.0"?>
  2. <?xul-overlay href="chrome://firebug/content/firebugOverlay.xul"?>
  3. <?xul-overlay href="chrome://browser/content/baseMenuOverlay.xul"?>
  4. <?xml-stylesheet href="chrome://global/skin/global.css"?>
  5. <?xml-stylesheet href="chrome://firebug/content/firebug.css"?>
  6. <?xml-stylesheet href="chrome://firebug/skin/window.css"?>
  7. <!DOCTYPE window [
  8. <!ENTITY % firebugDTD SYSTEM "chrome://firebug/locale/firebug.dtd">
  9. %firebugDTD;
  10. <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
  11. %browserDTD;
  12. ]>
  13. <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  14.         id="firebug"
  15.         title="Firebug"
  16.         width="800" height="600"
  17.         persist="screenX,screenY,width,height,sizemode">
  18.     <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  19.     <script type="application/x-javascript" src="chrome://firebug/content/trace.js"/>
  20.     <script type="application/x-javascript" src="chrome://firebug/content/xpcom.js"/>
  21.     <script type="application/x-javascript" src="chrome://firebug/content/chrome.js"/>
  22.     <script type="application/x-javascript">
  23.         // To avoid error messages when Firebug extensions are loaded into this window.
  24.         // All necessary JS objects are already created in the browser window space and
  25.         // shared here (see FirebugChrome.initialize). It's not desirable to create
  26.         // these objects again.
  27.         top.FBL = { ns: function(fn) {} }
  28.     </script>
  29.     <stringbundleset id="stringbundleset"/>
  30.     <commandset id="baseMenuCommandSet"/>
  31.     <keyset id="baseMenuKeyset"/>
  32.     <commandset id="mainCommandSet">
  33.         <command id="cmd_undo" oncommand="goDoCommand('cmd_undo')" disabled="true"/>
  34.         <command id="cmd_redo" oncommand="goDoCommand('cmd_redo')" disabled="true"/>
  35.         <command id="cmd_cut" oncommand="goDoCommand('cmd_cut')" disabled="true"/>
  36.         <command id="cmd_copy" oncommand="goDoCommand('cmd_copy')" disabled="true"/>
  37.         <command id="cmd_paste" oncommand="goDoCommand('cmd_paste')" disabled="true"/>
  38.         <command id="cmd_delete" oncommand="goDoCommand('cmd_delete')" valueDefault="&deleteCmd.label;"
  39.                  disabled="true"/>
  40.         <command id="cmd_selectAll" oncommand="goDoCommand('cmd_selectAll')" disabled="true"/>
  41.         <command id="cmd_closeWindow" oncommand="window.close()"/>
  42.         <command id="cmd_reload" oncommand="FirebugChrome.reload()"/>
  43.         <command id="cmd_reloadSkipCache" oncommand="FirebugChrome.reload(true)"/>
  44.         <command id="cmd_toggleOrient" oncommand="FirebugChrome.toggleOrient()" />
  45.     </commandset>
  46.     <keyset id="mainKeyset">
  47.         <key id="key_undo" key="&undoCmd.key;" modifiers="accel"/>
  48.         <key id="key_redo" key="&undoCmd.key;" modifiers="accel,shift"/>
  49.         <key id="key_cut" key="&cutCmd.key;" modifiers="accel"/>
  50.         <key id="key_copy" key="©Cmd.key;" modifiers="accel"/>
  51.         <key id="key_paste" key="&pasteCmd.key;" modifiers="accel"/>
  52.         <key id="key_delete" keycode="VK_DELETE" command="cmd_delete"/>
  53.         <key id="key_selectAll" key="&selectAllCmd.key;" modifiers="accel"/>
  54.         <key key="&reloadCmd.commandkey;" command="cmd_reload" modifiers="accel" id="key_reload"/>
  55.         <key key="&reloadCmd.commandkey;" command="cmd_reload" modifiers="accel,shift"/>
  56.         <key id="key_closeWindow" key="w" command="cmd_closeWindow" modifiers="accel"/>
  57.     </keyset>
  58.     <broadcasterset id="mainBroadcasterSet"/>
  59.     <popupset id="mainPopupSet"/>
  60.     <!-- A menu used within this external Firebug window. -->
  61.     <toolbox id="fbExternalWindowMenuBar">
  62.         <menubar>
  63.             <menu id="file-menu" label="&fileMenu.label;"
  64.                   accesskey="&fileMenu.accesskey;">
  65.                 <menupopup onpopupshowing="FirebugChrome.onOptionsShowing(this)">
  66.                     <menuitem id="menu_closeWindow" command="cmd_closeWindow" key="key_closeWindow"
  67.                               label="&firebug.Close;"/>
  68.                 </menupopup>
  69.             </menu>
  70.             <menu id="view-menu" label="&firebug.View;">
  71.                 <menupopup onpopupshowing="return FirebugChrome.onOptionsShowing(this);">
  72.                     <menuitem  type="checkbox" label="&firebug.Vertical;" id="menu_toggleOrient"
  73.                             command="cmd_toggleOrient"
  74.                             option="viewPanelOrient" />
  75.                     <menuseparator/>
  76.                     <menuitem id="menu_reload" command="cmd_reload" key="key_reload"
  77.                               label="&reloadCmd.label;" accesskey="reloadCmd.accesskey"/>
  78.                     <menuseparator/>
  79.                     <menu label="&firebug.TextSize;">
  80.                         <menupopup>
  81.                             <menuitem label="&firebug.IncreaseTextSize;" oncommand="Firebug.increaseTextSize(1)"/>
  82.                             <menuitem label="&firebug.DecreaseTextSize;" oncommand="Firebug.increaseTextSize(-1)"/>
  83.                             <menuitem label="&firebug.NormalTextSize;" oncommand="Firebug.setTextSize(0)"/>
  84.                         </menupopup>
  85.                     </menu>
  86.                     <!-- Options -->
  87.                     <menu label="&firebug.Options;" id="FirebugMenu_Options">
  88.                         <menupopup onpopupshowing="return FirebugChrome.onOptionsShowing(this);" id="FirebugMenu_OptionsPopup">
  89.                             <menuitem type="checkbox" label="&firebug.AlwaysOpenInWindow;"
  90.                                        oncommand="FirebugChrome.onToggleOption(this)"
  91.                                        option="openInWindow"/>
  92.                             <menuitem type="checkbox" label="&firebug.ShowTooltips;"
  93.                                        oncommand="FirebugChrome.onToggleOption(this)"
  94.                                        option="showInfoTips"/>
  95.                             <menuitem type="checkbox" label="&firebug.ShadeBoxModel;"
  96.                                       oncommand="FirebugChrome.onToggleOption(this)"
  97.                                       option="shadeBoxModel"/>
  98.                             <menuitem type="checkbox" id="showQuickInfoBox" label="firebug_options_showQuickInfoBox"
  99.                                       oncommand="FirebugChrome.onToggleOption(this)"
  100.                                       option="showQuickInfoBox"/>
  101.                             <menuitem type="checkbox" id="menu_enableA11y"
  102.                                       label="Firebug.menu.Enable Accessibility Enhancements"
  103.                                       oncommand="FirebugChrome.onToggleOption(this)"
  104.                                       option="a11y.enable"/>
  105.                             <menuitem type="checkbox" id="menu_activateSameOrigin"
  106.                                       label="Firebug.menu.Activate Same Origin URLs"
  107.                                       oncommand="FirebugChrome.onToggleOption(this)"
  108.                                       option="activateSameOrigin"/>
  109.                          </menupopup>
  110.                     </menu>
  111.                     <menuseparator/>
  112.                     <menu label="&firebug.OpenWith;"> <!-- TODO Firebug.Editors -->
  113.                         <menupopup id="menu_firebugOpenWith" onpopupshowing="return FirebugChrome.onEditorsShowing(this);">
  114.                             <menuitem label="&firebug.ConfigureEditors;..." command="cmd_openFirebugEditors"/>
  115.                         </menupopup>
  116.                      </menu>
  117.                 </menupopup>
  118.             </menu>
  119.             <menu id="windowMenu" />
  120.             <menu id="window-menu" label="&firebug.Help;">
  121.                 <menupopup>
  122.                     <menuitem label="&firebug.Website;" oncommand="Firebug.visitWebsite('main')"/>
  123.                     <menuitem label="&firebug.Documentation;" oncommand="Firebug.visitWebsite('docs')"/>
  124.                     <menuitem label="&firebug.KeyShortcuts;" oncommand="Firebug.visitWebsite('keyboard')"/>
  125.                     <menuitem label="&firebug.Forums;" oncommand="Firebug.visitWebsite('discuss')"/>
  126.                     <menuitem label="&firebug.Issues;" oncommand="Firebug.visitWebsite('issues')"/>
  127.                     <menuseparator/>
  128.                     <menuitem label="&firebug.Donate;" oncommand="Firebug.visitWebsite('donate')"/>
  129.                     <menuseparator/>
  130.                     <menuitem id="Firebug_About" label="&firebug.About;" oncommand="FirebugChrome.openAboutDialog()"/>
  131.                 </menupopup>
  132.             </menu>
  133.         </menubar>
  134.     </toolbox>
  135.     <!-- Entire Firebug UI -->
  136.     <vbox id="fbContentBox" flex="1">
  137.         <box id="fbPanelBox" flex="1">
  138.             <panelBar id="fbPanelBar1">
  139.                 <hbox id="fbPanelBar1-tabBox">
  140.                     <!-- Some of the buttons don't make sense in the stand-alone window - hide them. -->
  141.                     <hbox id="fbPanelBar1-buttons">
  142.                         <toolbarbutton id="fbFirebugMenu" collapsed="true"/>
  143.                     </hbox>
  144.                 </hbox>
  145.             </panelBar>
  146.         </box>
  147.         <hbox id="fbCommandBox"/>
  148.     </vbox>
  149.     <!-- If Firebug is displayed in this external window, but not active for currently selected
  150.          Firefox tab, the following button allows to resume it. -->
  151.     <vbox id="fbResumeBox" flex="1" collapsed="true">
  152.         <spacer flex="1"/>
  153.         <hbox>
  154.             <spacer flex="1"/>
  155.             <button id="fbResumeBoxButton"
  156.                 label="label.Activate Firebug for the selected Firefox tab"
  157.                 command="cmd_toggleSuspendFirebug" />
  158.             <spacer flex="1"/>
  159.         </hbox>
  160.         <spacer flex="1"/>
  161.     </vbox>
  162. </window>
  163.